package com.siashan.toolkit.oss.minio;

import com.siashan.toolkit.oss.minio.core.MinioOssConfig;
import lombok.Data;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.regex.Pattern;

/**
 * 阿里云oss配置信息
 *
 * @author sias_han
 * @date 2024/2/6
 */
@Data
@ConfigurationProperties(prefix = MinioOssProperties.PREFIX)
public class MinioOssProperties {

    private static final Logger log = LoggerFactory.getLogger(MinioOssProperties.class);

    /**
     * Prefix of {@link MinioOssProperties}.
     */
    public static final String PREFIX = "siashan.oss.minio";

    private static final Pattern PATTERN = Pattern.compile("-(\\w)");

    /**
     * MinIO oss配置
     */
    private MinioOssConfig config;

}
